import { UploadUserFile, UploadFile } from "element-plus";

export interface PyUploadImgType {
	// 上传图片的最大数量
	limit?: number;
	//是否禁用
	disabled?: boolean;
	width?: string;
	height?: string;
	desc?: string;
	/** 图片上传触发 */
	change?: (files: UploadUserFile[], currentFile: UploadFile) => void;
	/** 图片自动上传触发 */
	changeAutoUpload?: (files: string, currentFile: string) => void;
	remove?: (files: UploadUserFile[], currentFile: UploadFile) => void;
	removeAutoUpload?: (files: string, currentFile: string) => void;
	/** 是否自动上传 */
	isAutoUpload?: boolean;
	/** 自动上传的url,开启isAutoUpload生效 */
	url?: string;
}
export interface ImageItemType {
	name: string;
	url: string;
	id?: string;
}
